Initializing
and Terminating the Callback Context
Before the
default queue callback routine can be used, either by specifying it as the
callback routine when committing a file queue, or by calling it from a custom
callback routine, it must be initialized.
The SetupInitDefaultQueueCallback function builds the context
structure that is used by the default queue callback routine. It returns a void
pointer to that structure. This structure is essential for the default callback
routine s operation and must be passed to the callback
routine. You do can this either by specifying the void pointer as the context
in a call to SetupCommitFileQueue
The SetupInitDefaultQueueCallbackEx
Regardless of
whether you initialized the context used by the default queue callback routine
with SetupInitDefaultQueueCallback or SetupInitDefaultQueueCallbackEx,
after the queued operations have finished processing, call SetupTermDefaultQueueCallback
to release the resources allocated in initializing the context structure.